package com.ibsol.controller
{
	import com.ibsol.event.PackageEvent;
	import com.ibsol.locator.ModelLocator;
	import com.iizer.dispatcher.SystemDispatcher;
	
	public class PackageController
	{
		private var systemDispatcher:SystemDispatcher = SystemDispatcher.getInstance(); 
			
		[Bindable]
		private var modelLocator:ModelLocator = ModelLocator.getInstance();		
		public function PackageController()
		{
			systemDispatcher.addEventListener(PackageEvent.PACKAGE_LOADED,onPackageLoaded);
		}

		private function onPackageLoaded(ev:PackageEvent):void
		{
			modelLocator.packageFilter.packageAC = ev.packages;	
		}



	}
}